import React from 'react';
import RouterView from './router';
import { BrowserRouter as Router, NavLink } from 'react-router-dom'
const App = () => {
  return (
    <div>
      <Router>
        <NavLink to='/'>首页</NavLink>
        <NavLink to='/music'>音乐</NavLink>
        {/* 此处一定要写成组件的形式 不要写成函数 */}
        <RouterView></RouterView>
      </Router>
    </div>
  );
}

export default App;